<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../../Templates/SubFolderTemplate.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    <ui:define name="head-title">
        <title>Add Material Batch | Merlion's ERP System</title>
    </ui:define>
    
    <ui:define name="content">
        <h:form>
            <p:panel id="panel" header="Manage Public Holidays"> 
                <p:ajaxStatus style="width:16px;height:16px;">   
                    <f:facet name="start">   
                        <p:graphicImage value="http://www.primefaces.org:8080/showcase/design/ajaxloading.gif" /> 
                    </f:facet> 
 
                    <f:facet name="complete">   
                        <h:outputText value="" />   
                    </f:facet>   
                </p:ajaxStatus> 
                <p:messages />
                
                <h:panelGrid columns="2" cellpadding="10">
                
                    <h:outputText value="New Year"/>
                    <p:calendar value="#{holidayManagerBean.newYear}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Chinese New Year"/>
                    <p:calendar value="#{holidayManagerBean.chineseYear1}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="To: "/>
                    <p:calendar value="#{holidayManagerBean.chineseYear2}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Good Friday"/>
                    <p:calendar value="#{holidayManagerBean.goodFriday}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Labour Day"/>
                    <p:calendar value="#{holidayManagerBean.labourDay}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Vesak Day"/>
                    <p:calendar value="#{holidayManagerBean.vesakDay}" pattern="dd/MM/yyyy"/>                    
                    
                    <h:outputText value="National Day"/>
                    <p:calendar value="#{holidayManagerBean.nationalDay}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Hari Raya Puasa"/>
                    <p:calendar value="#{holidayManagerBean.puasa}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Hari Raya Haji"/>
                    <p:calendar value="#{holidayManagerBean.haji}" pattern="dd/MM/yyyy"/>

                    
                    <h:outputText value="Deepavali"/>
                    <p:calendar value="#{holidayManagerBean.deepavali}" pattern="dd/MM/yyyy"/>
                    
                    <h:outputText value="Christmas"/>
                    <p:calendar value="#{holidayManagerBean.christmas}" pattern="dd/MM/yyyy"/>
                    
                    <p:commandButton value="Save" actionListener="#{holidayManagerBean.save}" update="panel"/>
                    
                </h:panelGrid>
                
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>
 